package com.bangdao.service.edu;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.bind.annotation.CrossOrigin;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@EnableFeignClients  //开启openfeign
@EnableDiscoveryClient  //开启注册中心nacos
@EnableSwagger2
//@CrossOrigin  //跨域请求
@SpringBootApplication
@MapperScan("com.bangdao.service.edu.mapper")
public class ServiceEduApplication {
    
    public static void main(String[] args) {
        SpringApplication.run(ServiceEduApplication.class, args);
    }
}